﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CDList.aspx.cs" Inherits="CDList"
    MasterPageFile="~/Default.master" EnableViewState="false" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2.Export, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>            
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<asp:Content ContentPlaceHolderID="head" ID="hd" runat="server" EnableViewState="false">

    <script src="CDList.js" type="text/javascript"></script>
    <script src="js/LOV.js" type="text/javascript"></script> 
    <script src="js/Datetimepicker.js" type="text/javascript"></script>
    
    

    <script src="js/FileUpload.js" type="text/javascript"></script>
    
<%--
    
    <!-- TinyMCE -->

    <script src="js/tiny_mce.js" type="text/javascript"></script>

    <!-- /TinyMCE -->--%>
    <link href="CDList.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ContentPlaceHolderID="leftMenu" ID="leftnav" runat="server" EnableViewState="false">
<% Response.Write(GenerateSideMenu()); %>

</asp:Content>
<asp:Content ContentPlaceHolderID="content" ID="ctnCC" runat="server"
    EnableViewState="false">
    <div id="pnlCDTitle"></div>
    <div id="pnlCD" runat="server"></div> 
    <fieldset class="m_fs_border" id="fs_CDList">
        <legend><a class="lnk" href="javascript:toggle('CDList');">Config and Datek List</a>
        </legend>
        <dl class="m_fs">
            <div id="div_CDList">
            <% Response.Write(CDManager.BuildEditor_CDList()); %>
            <dxwgv:ASPxGridView ID="dgKonfigDatek" KeyFieldName="T_KONFIGURASI_DATEK_ID" ClientInstanceName="dgKonfigDatek_c"
                runat="server" AutoGenerateColumns="false" Width="100%" Font-Size="Small"
                 OnCustomCallback="dgKonfigDatek_CustomCallback">
                <Styles Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true" Cell-Font-Size="Smaller" Header-Wrap="true"
                    Header-Font-Size="Smaller" Header-Font-Bold="true">
                    <Header Wrap="True" Font-Size="Smaller" Font-Bold="True">
                    </Header>
                    <AlternatingRow Enabled="True">
                    </AlternatingRow>
                    <Cell Wrap="True" Font-Size="Smaller">
                    </Cell>
                </Styles>
                <SettingsPager PageSize="10">
                </SettingsPager>
                <Settings ShowFilterBar="Visible" ShowFilterRow="true" ShowFilterRowMenu="true" ShowHorizontalScrollBar="true" />
                <SettingsBehavior AllowSort="true" />
                <%--<ClientSideEvents EndCallback="dgKonfigDatek_c_EndCallBack" />--%>
                <Columns>
                    <dxwgv:GridViewDataDateColumn FieldName="CREATE_DATE" Name="CREATE_DATE"
                     Caption="CREATE DATE" PropertiesDateEdit-DisplayFormatString="dd-MMM-yyyy HH:mm:ss">
                    </dxwgv:GridViewDataDateColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="CREATE_BY_NAME" Name="CREATE_BY_NAME" Caption="CREATE BY" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataDateColumn FieldName="UPDATE_DATE" Name="UPDATE_DATE"
                     Caption="UPDATE DATE" PropertiesDateEdit-DisplayFormatString="dd-MMM-yyyy HH:mm:ss">
                    </dxwgv:GridViewDataDateColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="UPDATE_BY_NAME" Name="UPDATE_BY_NAME" Caption="UPDATE BY" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="COMPANY_NAME" Name="COMPANY_NAME" Caption="COMPANY" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCompanyLinkColumn(Eval("CUSTOMER_ID").ToString(), Eval("COMPANY_NAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="COMPANY_CLASS" Name="COMPANY_CLASS" Caption="CLASS" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="INFO" Name="INFO" Caption="INFO" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="CAR" Name="CAR" Caption="CAR" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCARLinkColumn(Eval("EMPLOYEE_NO").ToString(),Eval("CAR").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="KONFIG_FILENAME" Name="KONFIG_FILENAME"
                     Caption="KONFIGURASI" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetDownloadLinkColumn(Eval("KONFIG_FILE_ID").ToString(), Eval("KONFIG_FILENAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="DATEK_FILENAME" Name="DATEK_FILENAME"
                     Caption="DATEK" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetDownloadLinkColumn(Eval("DATEK_FILE_ID").ToString(), Eval("DATEK_FILENAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="EVALUASI_FILENAME" Name="EVALUASI_FILENAME"
                     Caption="EVALUASI" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetDownloadLinkColumn(Eval("EVALUASI_FILE_ID").ToString(), Eval("EVALUASI_FILENAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="NOTE" Name="NOTE" Caption="NOTE" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="EDIT" Name="EDIT" CellStyle-HorizontalAlign="Center">
                        <DataItemTemplate>
                        <a href="CDNew.aspx?cid=<%# Eval("CUSTOMER_ID").ToString() %>&cdid=<%# Eval("T_KONFIGURASI_DATEK_ID").ToString() %>">Edit</a>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>                      
                </Columns>
            </dxwgv:ASPxGridView>
			<dxwgv:ASPxGridViewExporter ID="dgExporter" GridViewID="dgKonfigDatek" runat="server">
                </dxwgv:ASPxGridViewExporter>
                <dxe:ASPxButton ID="btnExport" runat="server" Text="Save To XLS" UseSubmitBehavior="false"
                    OnClick="btnExport_Click" ClientInstanceName="btnExport_c" Image-Url="images/excel.png" 
                    Width="120px" Height="20px" HorizontalAlign="Left">
                </dxe:ASPxButton>
            </div>
        </dl>
    </fieldset>
    
</asp:Content>
